<meta charset="UTF-8">
<style>
    body{
        background: url(./1.webp) center/100% no-repeat;
    }
    div{
        font-size: 80px;
        position: relative;
        width: 90px;
        
    }
</style>
<body>
    <div>小蜜蜂</div>
</body>

<script>

document.body.onmousemove = function (evt){

    let e = evt || window.event
    
    let renObj = document.querySelector('div')
  
    
    renObj.style.top = `${e.clientY - renObj.clientHeight/2}px`
    renObj.style.left =`${e.clientX - renObj.clientWidth/2 }px`
}
</script>
